<?php
$domains = array(
    "hangve" => IS_LOCAL ? "local.hangve.vn" : "hangve.vn",
);

  
$array_base = array(
    "/client-min" => array("/min/serve"),
    
// hehe
    "/tai-khoan/xac-nhan-sdt" => array("/user/page/VerifyPhone"),
    "/tai-khoan/dang-ky" => array("/user/page/create"),
    "/tai-khoan/dang-nhap/<service:[\w\-]+>" => array("/user/page/login"),
    "/tai-khoan/dang-nhap" => array("/user/page/login"),
    "/tai-khoan/mat-khau" => array("/user/page/password"),
    "/tai-khoan/quan-ly-email-openid/<service:[\w\-]+>" => array("/user/page/manageEmail"),
    "/tai-khoan/quan-ly-email-openid" => array("/user/page/manageEmail"),
    "/tai-khoan/quan-ly-sdt" => array("/user/page/managePhone"),
    "/tai-khoan/cap-nhan-thong-tin" => array("/user/page/update"),

    
    "http://hehe.vn" => array("/hehe/web/feed/index"),

    "http://hehe.vn/anh-vui"   => "/hehe/web/image/index",
    "http://hehe.vn/i/<id:\d+>"   => "/hehe/web/image/view",

    // video
    "http://hehe.vn/video-nhon"   => "/hehe/web/video/index",
    "http://hehe.vn/v/<id:\d+>"   => "/hehe/web/video/view",
    
    // video
    "http://hehe.vn/truyen-cuoi"   => "/hehe/web/joke/index",
    "http://hehe.vn/j/<id:\d+>"   => "/hehe/web/joke/view",
    
// hangve
    "http://{$domains["hangve"]}" => array("/hangve/page/index"),
    "http://{$domains["hangve"]}/mua-ban/tao-bai-viet" => array("/hangve/post/create"),
    "http://{$domains["hangve"]}/mua-ban/tao-gian-hang" => array("/hangve/post/createShop"),
    
    
    // cat
    "http://{$domains["hangve"]}/mua-ban/<parent_alias:[a-z\-]+>/<child_alias:[a-z\-]+>" => array("/hangve/post/index"),
    "http://{$domains["hangve"]}/mua-ban/<parent_alias:[a-z\-]+>" => array("/hangve/post/index"),
    

    
    // post
    "http://{$domains["hangve"]}/mua-ban/<alias:[\w\-]+>-<id:\d+>" => array("/hangve/post/view"),
    "http://{$domains["hangve"]}/mua-ban/<alias:[\w\-]+>-<id:\d+>/sua-bai" => array("/hangve/post/update"),
    "http://{$domains["hangve"]}/mua-ban/<post_alias:[\w\-]+>-<post_id:\d+>/tra-loi/<reply_id:\d+>" => array("/hangve/post/replyCreate"),
    "http://{$domains["hangve"]}/mua-ban/<post_alias:[\w\-]+>-<post_id:\d+>/tra-loi" => array("/hangve/post/replyCreate"),

    "<_p1:\w+>"=>"<_p1>",
    "<_p1:\w+>/<_p2:\w+>"=>"<_p1>/<_p2>",
    "<_p1:\w+>/<_p2:\w+>/<_p3:\w+>"=>"<_p1>/<_p2>/<_p3>",
    "<_p1:\w+>/<_p2:\w+>/<_p3:\w+>/<_p4:\w+>"=>"<_p1>/<_p2>/<_p3>/<_p4>",
);
//$array_domain = require(dirname(__FILE__)."/domain.php");
//$array_base = array_merge($array_domain, $array_base);

return $array_base;